import 'package:chewie/chewie.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
// import 'package:video_player_win/video_player_win.dart';

import 'controller.dart';

class VideoPlayerPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetX<VideoController>(
        init: VideoController(),
        builder: (controller) {
          return Scaffold(
              appBar: AppBar(title: Text('play_video'.tr)),
              body: Center(
                  // child: WinVideoPlayer(controller.videoPlayerController!),
                  // child: WinVideoPlayer(controller.videoPlayerController!)),
                  child: controller.initSuccess.value
                      ? Chewie(controller: controller.cController!)
                      : Container()));
        });
  }
}
